<template>
  <div class="apply">
    <common-header color="#0084ff"></common-header>
    <banner :option="bannerOption"></banner>
    <div class="about">
        <div class="about-title">我们是谁</div>
        <div class="about-tips">左赞是一家专注为中小企业提供互联网营销服务的创新性企业</div>
        <img class="about-img" src="~@/assets/images/zuozan.png"> 
    </div>
    <div class="why">
        <div class="why-title">为什么选我们</div>
        <div class="why-list">
          <div 
            class="why-item"
            v-for="(reason, reasonIndex) in reasonList"
            :style="{  borderColor:  reason.borderColor}"
            :key="reasonIndex">
            <img class="why-item-img" :src="reason.imgUrl">
            <div class="why-item-lable">{{ reason.label }}</div>
            <div class="why-item-desc" v-html="reason.desc"></div>
          </div> 
        </div>
    </div>
    <div class="benefit">
      <div class="benefit-title">加盟左赞，你能获得什么?</div>
        <div class="benefit-list">
          <div 
            class="benefit-item"
            v-for="(reason, reasonIndex) in benefitList"
            :key="reasonIndex">
            <img class="benefit-item-img" :src="reason.imgUrl">
            <div class="benefit-item-lable">{{ reason.label }}</div>
            <div class="benefit-item-desc" v-html="reason.desc"></div>
          </div> 
        </div>
    </div>
    <div class="progress">
      <div class="progress-title">如何加盟左赞?</div>
      <div class="progress-tips">加盟左赞只需4步</div>
      <img class="progress-img" src="~@/assets/images/jiameng.png">
    </div>
    <common-footer></common-footer>
  </div>
</template>

<script>
import CommonHeader from '@/components/CommonHeader.vue'
import Banner from '@/components/Banner.vue'
import CommonFooter from '@/components/CommonFooter.vue'

export default {
  name: 'introduction',
  components: {
    CommonHeader,
    CommonFooter,
    Banner,
  },
  data() {
    return {
      bannerOption: {
        path: '',
        imgUrl: require('@/assets/images/apply-banner.png')
      },
      reasonList: [
        {
          label: '品牌优势',
          desc: '上海高新科技公司<br>上海双软认证企业<br>超100万用户的信赖选择',
          imgUrl: require('@/assets/images/icon1.png'),
          borderColor: '#0072fb'
        },
        {
          label: '产品优势',
          desc: '简单易懂的模板<br>随手可建的移动营销活动 无需技术，<br>简单培训即可开展业务',
          imgUrl: require('@/assets/images/icon2.png'),
          borderColor: '#fa8c16 '
        },
        {
          label: '服务优势',
          desc: '专业产品培训，免费提供教程课件 <br>全方位一站式业务扶持，后顾无忧 <br>7*24小时，全年365天不间断优质服务',
          imgUrl: require('@/assets/images/icon3.png'),
          borderColor: '#3cb624'
        },
      ],
      benefitList: [
        {
          label: '基础产品收入',
          desc: '左赞产品精准契合用户需求，客户成交率高 <br>利润丰厚，给您带来高额收入，轻松赢利',
          imgUrl: require('@/assets/images/icon4.png')
        },
        {
          label: '产品续费/升级收入',
          desc: '产品每年续费收入+产品版本升级收入<br> 让您每年坐收稳定高收益',
          imgUrl: require('@/assets/images/icon5.png')
        },
        {
          label: '其他服务收入',
          desc: '提供定制服务、企业营销等更多增值服务<br> 为企业打造完整互联网营销闭环',
          imgUrl: require('@/assets/images/icon6.png')
        },
      ]
    }
  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
$phone-width: 450px;
.apply {
  .about {
    text-align: center;
    background: #f7fafc;
    padding-top: 45px;
    &-title {
      font-size: 24px;
      color: #333333;
      margin-bottom: 19px;
    }
    &-tips {
      font-size: 12px;
      color: #888888;
    }
    &-img {
      width: 339px;
      margin: 32px auto;
    }
  }
  .why {
    text-align: center;
    padding-bottom: 50px;
    &-title {
      font-size: 24px;
      color: #333333;
      margin-bottom: 19px;
      margin-top: 60px;
    }
    &-list {
      display: flex;
      justify-content: center;
      .why-item {
        width: 185px;
        height: 203px;
        text-align: center;
        box-shadow: 0 2px 3px 0 rgba(0,0,0,.1);
        margin-right: 50px;
        border-top-width: 2px;
        border-top-style: solid;
        padding-top: 24px;
         &:last-child {
          margin-right: 0;
        }
        &-img {
          width: 55px;
        }
        &-lable {
          font-size: 14px;
          color: #463D33;
          margin: 20px 0 24px;
        }
        &-desc {
          font-size: 12px;
          letter-spacing: -1px;
          transform: scale(0.8);
          font-weight:400;
          color:rgba(153,153,153,1);
        }
      }
    }
  }
  .benefit {
    text-align: center;
    background: #f7fafc;
    padding-top: 48px;
    &-title {
      font-size: 24px;
      color: #333333;
      margin-bottom: 19px;
    }
    &-list {
      display: flex;
      justify-content: center;
      .benefit-item {
        width: 220px;
        height: 203px;
        text-align: center;
        padding-top: 24px;
         &:last-child {
          margin-right: 0;
        }
        &-img {
          width: 55px;
        }
        &-lable {
          font-size: 14px;
          color: #463D33;
          margin: 20px 0 24px;
        }
        &-desc {
          font-size: 12px;
          letter-spacing: -1px;
          transform: scale(0.8);
          font-weight:400;
          color:rgba(153,153,153,1);
        }
      }
    }
  }
  .progress {
    text-align: center;
    padding-top: 48px;
    &-title {
      font-size: 24px;
      color: #333333;
      margin-bottom: 12px;
    }
    &-tips {
      font-size: 12px;
      color: #999999;
      margin-bottom: 10px;
    }
    &-img {
      width: 600px;
      margin: 0 auto;
    }
  }
  .middle-banner {
    width: 100%;
    margin-top: 150px;
  }
}
@media screen and (max-width: $phone-width) {
  .apply {
    .why {
      &-list {
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        .why-item {
          margin: 0;
          margin-bottom: 20px;
        }
      }
    }
    .progress {
      &-img {
        width: 100%;
      }
    }
  }
}
</style>
